﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LOSSite.Master" Inherits="System.Web.Mvc.ViewPage<DataAccessLayer.Models.Customer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>" type="text/javascript"></script>

    <h2>Create New Application</h2>
    <p>
        Applicant Details
    </p>
    <% Html.EnableClientValidation(); %>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm())
       {%>
        <div class="Editor-Main">
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Name)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Name)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Name)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Gender)%>
            </div>
            <div class="Editor-Content">
                <%= Html.DropDownListFor(model => model.Gender, (SelectList)ViewData["GenderList"])%>&nbsp;<%= Html.ValidationMessageFor(model => model.Gender)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.IDTypeCode)%>
            </div>
            <div class="Editor-Content">
                <%= Html.DropDownListFor( model => model.IDTypeCode, (SelectList)ViewData["IDList"])%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.IDNumber)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.IDNumber)%>&nbsp;<%= Html.ValidationMessageFor(model => model.IDNumber)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.DOB)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.DOB)%>&nbsp;<%= Html.ValidationMessageFor(model => model.DOB)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Email)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Email)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Email)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Address.AddressLine1)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Address.AddressLine1)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Address.AddressLine1)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Address.AddressLine2)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Address.AddressLine2)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Address.AddressLine2)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Address.AddressLine3)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Address.AddressLine3)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Address.AddressLine3)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Address.StateCity)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Address.StateCity)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Address.StateCity)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Address.PostalCode)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.Address.PostalCode)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Address.PostalCode)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.Address.Country)%>
            </div>
            <div class="Editor-Content">
                <%= Html.DropDownListFor(model => model.Address.CountryCode, (SelectList)ViewData["CountryList"])%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.HomePhone)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.HomePhone)%>&nbsp;<%= Html.ValidationMessageFor(model => model.HomePhone)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.OfficePhone)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.OfficePhone)%>&nbsp;<%= Html.ValidationMessageFor(model => model.OfficePhone)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.MobilePhone)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.MobilePhone)%>&nbsp;<%= Html.ValidationMessageFor(model => model.MobilePhone)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.TotalIncome)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.TotalIncome)%>&nbsp;<%= Html.ValidationMessageFor(model => model.TotalIncome)%>
            </div>
            <div class="Editor-Content">
                <%= Html.LabelFor(model => model.OtherObligation)%>
            </div>
            <div class="Editor-Content">
                <%= Html.TextBoxFor(model => model.OtherObligation)%>&nbsp;<%= Html.ValidationMessageFor(model => model.OtherObligation)%>
            </div>
            <p>
                <input type="submit" value="Next" />
            </p>  
        </div>
    <%}%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Greeting" runat="server">
<% Html.RenderPartial("Greeting", Session["LoggedUser"]); %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuList" runat="server">
<% Html.RenderPartial("MenuList", Session["LoggedUser"]); %>
</asp:Content>
